import 'package:flutter/material.dart';
import 'package:summer/pages/login_register/page/login_page.dart';
import 'package:summer/pages/login_register/page/register_page.dart';

class RikiRouter {
  static final Map<String, WidgetBuilder> routes = {
    LoginPage.routeName: (BuildContext cxt) => const LoginPage(), //登录
    RegisterPage.routeName: (BuildContext cxt) => const RegisterPage(), //注册
  };

  static Route<dynamic>? generateRoute(RouteSettings setting) {
    return null;
  }

  // 未知界面的路由
  // static Route<dynamic> unknownRoute(RouteSettings settings) {
  //   return NavigatorUtil.push(const UnknownPage());
  // }

  /// 初始化界面的路由
  static const String initialRoute = LoginPage.routeName;
}
